<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2016 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------
use think\Route;
//Route::rule(‘路由表达式’,‘路由地址’,‘请求类型’,‘路由参数（数组）’,‘变量规则（数组）’);
Route::rule('login','oa/login/login');
Route::rule('Alogin','admin/login/login');
Route::resource('report','oa/Report',['only'=>['index','read','edit','update']]); //工作日志资源路由
Route::resource('mission','oa/Mission',['only'=>['index','read','edit','update']]);//工作任务资源路由
Route::resource('depart','admin/DepartMent');//部门资源路由
Route::resource('duty','admin/Duty');//职务资源路由
Route::resource('account','admin/Account');//账号资源路由
return [
    '__pattern__' => [
        'name' => '\w+',
    ],
    '[hello]'     => [
        ':id'   => ['index/hello', ['method' => 'get'], ['id' => '\d+']],
        ':name' => ['index/hello', ['method' => 'post']],
    ],
    'register'=>['oa/login/register',['ext'=>'html']],
    'logout'=>['oa/login/logout',['ext'=>'html']],
    'modify'=>['oa/login/modify',['ext'=>'html']]

];
